﻿<%@ Page Title="Trang chủ" Theme="WebMaster" Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register src="ControlUser/uscMsgBox.ascx" tagname="uscMsgBox" tagprefix="uc1" %>

<html>
<head runat="server">
<style type="text/css">
body {
	background: #FFFFFF;
	text-align: center;
	margin: 0px;
}
#logo1 { 
                 position:absolute;  
                 top:4px; 
                 left:50px 
              } 
 #logo2 { 
                  position:absolute; 
                  top:20px; 
                  left:500px;
                   color:#FFFFFF;
              } 
                           
#page_container {
	position: relative;
	margin-left: auto;
	margin-right: auto;
	width: 904px;
	top: -32px;
}
#header {
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	height: 135px;
	background: #3f3f3f url(image/bg_BannerV1.gif) repeat-x center;
	position: relative;
	border-bottom: 1px solid #4a4a4a;
}
#header h1 {
	display: none;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	position: relative;
	top: 30px;
	font-size: 40px;
	color: white;
}
#header h2 {
	display: none;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size: 16px;
	color: #7e7e7e;
}
hr#header_stripe {
	height: 12px;
	position: relative;
	top: -7px;
	background-color: #191919;
	border: none;
	color: #191919;
}
.panel_button {
	margin-left: auto;
	margin-right: auto;
	position: relative;
	top: 1px;
	width: 173px;
	height: 54px;
	background: url(image/panel_button.png);
	z-index: 20;
	filter:alpha(opacity=70);
	-moz-opacity:0.70;
	-khtml-opacity: 0.70;
	opacity: 0.70;
	cursor: pointer;
}
.panel_button img {
	position: relative;
	top: 10px;
	border: none;
}
.panel_button a {
	text-decoration: none;
	color: #545454;
	font-size: 20px;
	font-weight: bold;
	position: relative;
	top: 5px;
	left: 10px;
	font-family: Arial, Helvetica, sans-serif;
}
.panel_button a:hover {
	color: #999999;
}
#wrapper {
	margin-left: auto;
	margin-right: auto;
	width: 900px;
	text-align: center;
}
#toppanel {
	position: absolute;
	width: 900px;
	left: 0px;
	z-index: 25;
	text-align: center;

}
#panel {
	width: 900px;
	position: relative;
	top: 1px;
	height: 0px;
	margin-left: auto;
	margin-right: auto;
	z-index: 10;
	overflow: hidden;
	text-align: left;
}
#panel_contents {
	background: #930F1F;
	filter:alpha(opacity=70);
	-moz-opacity:0.70;
	-khtml-opacity: 0.70;
	opacity: 0.70;
	height: 100%;
	width: 904px;
	position: absolute;
	z-index: -1;
}
#panel h1 {
	text-align: center;
	font-family:  Arial, Helvetica, sans-serif;
	color: white;
	font-weight: normal;
	line-height: 35px;
	left: 275px;
	position: absolute;
	top: 10px;
}
#panel h2 {
	text-align: center;
	font-family:  Arial, Helvetica, sans-serif;
	color: #447c6f;
	line-height: 25px;
	font-size: 16px;
	position: absolute;
	top: 60px;
	left: 350px;
}
#content {
	margin-left: auto;
	margin-right: auto;
	width: 600px;
	position: relative;
	top: 90px;
	text-align: left;
	color: #545454;
	font-family:Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	padding-bottom: 30px;
}
.border {
	border: 15px #1d1d1d solid;
}
img.border {
	float: left;
	margin-right: 15px;
	margin-bottom: 8px;
}
img.border_pic {
	border: 15px #1d1d1d solid;
	position: absolute;
	top: 110px;
	float: left;
	margin-left: 150px;
	width: 250px;
	height: 150px;
	z-index: 30;
}
div#login {
	width: 240px;
	height: 150px;
	position: absolute;
	right: 150px;
	top: 110px;
	background: #46392f;
	text-align: left;
	padding-left: 10px;
}
div#login p {
	color: #CCCCCC;
	font-family: Arial,Times New Roman, Times, serif;
	line-height: 25px;
}
div#login input#password {
	position: relative;
	right: -6px;
}
div#login input#login_btn {
	border: 1px #899690 solid;
	cursor: pointer;
	position: relative;
	top: 30px;
	left: 86px;
}
#footer p {
	font-family: Arial, Helvetica, sans-serif;
	position: relative;
	top: 60px;
	font-size: 13px;
	color: #333333;
}
</style>
<script src="JScript/jquery-1.4.4.js"type="text/javascript"></script>
<script type="text/javascript">
 
 
 function pageLoad()  {
 
  $(".IP").css("display","none");
  
 $.getJSON("http://jsonip.appspot.com?callback=?",
    function(data){
   
   
     var testValue = data.ip;
    $('.IP [type=Text][id*=txtIP]').val(testValue);
         
  });
  

	$("div.panel_button").click(function(){
		$("div#panel").animate({
			height: "500px"
		})
		.animate({
			height: "400px"
		}, "fast");
		$("div.panel_button").toggle();
	
	});	
	
   $("div#hide_button").click(function(){
		$("div#panel").animate({
			height: "0px"
		}, "fast");
		
	
   });	
	
}

</script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanelUser" runat="server"  UpdateMode="Conditional">
        <contenttemplate>
<div id="header">
  <h1>Sliding Panel</h1>
  <br />
  <h2>jQuery Sliding Panel Demonstration for NETTUTS</h2>
</div>
<div id="logo1">
<img src="image/Logo1.gif" alt="Screenshot" />
</div>
<div id="logo2">
 <h1>CHÀO MỪNG TỚI HỆ THỐNG BC</h1>
</div>
 <hr id="header_stripe"/>
  <div id="page_container">
  <div id="toppanel">
    <div id="panel">
      <div id="panel_contents"></div>--%>
      
      
      <img class="border_pic" src="image/Renewal cream.jpg" alt="Screenshot" />
      <div class="border" id="login">
        <p>Username:
          <asp:TextBox runat="server" ID="txtUsername" Width="180"></asp:TextBox>
          <asp:RequiredFieldValidator ID="rfv1" runat="server" ControlToValidate="txtUsername" ErrorMessage="*"></asp:RequiredFieldValidator>
          <br />
          Password:
          <asp:TextBox runat="server" ID="txtPassword" TextMode="Password" Width="180"></asp:TextBox>
		  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPassword" ErrorMessage="*"></asp:RequiredFieldValidator>
          <br />
          <asp:Button runat="server" ID="btLogon" OnClick="btLogin_OnClick"  Text="Logon" />  
          <div class="IP">
          <asp:TextBox runat="server" ID="txtIP" Width="180"></asp:TextBox>
         </div>
        </p>
      </div>
    </div>
    <div class="panel_button" style="display: visible;">
    <img src="image/expand.png"  alt="expand"/>
     <a href="#">Đăng nhập</a> </div>
    <div class="panel_button" id="hide_button" style="display: none;">
    <img src="image/collapse.png" alt="collapse" /> <a href="#">Đóng lại</a> </div>
  </div>
  <div id="content">
    <p>Click vào Đăng nhập để mở ra màn hình đăng nhập.</p>
    <p><i>Lưu ý :</i></p>
            <ul>
                <li>Bạn phải có tài khoản mới có quyền đăng nhập vào hệ thống</li>
                <li>Sử dụng trình duyệt Firefox phiên bản 4.0 trở lên để hệ thống hoạt động tốt hơn</li>
            </ul> 
  </div>
  <div id="footer">
    <p>Copyright &copy; 2011 Beauty Cosmetic</p>
  </div>
</div>
</contenttemplate>
</asp:UpdatePanel>
<uc1:uscMsgBox ID="uscMsgBox1" runat="server" />

    
    </form>

</body>
</html>
